#!/bin/bash

dir=$1
type=$2

cd $dir
find {,./*} -type f -name $2